/**
 * Title:       AgentManagementService.java
 * Copyright:   Copyright (c) 1996-2004 The Agent Factory Working Group. All rights reserved.
 * Licence:     This file is free software; you can redistribute it and/or modify
 *              it under the terms of the GNU Lesser General Public License as published by
 *              the Free Software Foundation; either version 2.1, or (at your option)
 *              any later version.
 *
 *              This file is distributed in the hope that it will be useful,
 *              but WITHOUT ANY WARRANTY; without even the implied warranty of
 *              MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *              GNU Lesser General Public License for more details.
 *
 *              You should have received a copy of the GNU Lesser General Public License
 *              along with Agent Factory; see the file COPYING.  If not, write to
 *              the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
 *              Boston, MA 02111-1307, USA.
 *
 */
package com.agentfactory.service.system;

import com.agentfactory.platform.util.Logger;
import com.agentfactory.platform.service.PlatformServiceDescriptor;
import com.agentfactory.platform.service.PlatformServiceManager;
import com.agentfactory.platform.service.PlatformService;
import com.agentfactory.platform.core.Agent;
import com.agentfactory.platform.AgentPlatform;

import java.util.*;

/**
 * Implementation of the FIPA HTTP Message Transport Service.
 *
 * @author  Rem Collier
 */
public class SystemService extends PlatformService implements Observer {
    private static final int CLASS_LOG_LEVEL = Logger.LEVEL_WARNING;
    
    private PlatformServiceManager manager;
    private AgentPlatform platform;
    
    public void init(PlatformServiceDescriptor descriptor, PlatformServiceManager manager) {
        this.manager = manager;
        platform = manager.getAgentPlatform();
    }
    
    public void update(Observable o, Object arg) {
    }
    
    public synchronized void notify(String message) {
        setChanged();
        notifyObservers(message);
    }
    
    public void bind(Agent agent) {
        platform.removeSystemAgent(agent);
    }
    
    public void modifyBinding(String oldName, String name) {
    }
    
    public void start() {
    }
    
    public void unbind(Agent agent) {
    }
}
